package com.yuyou.tas.lesson.mapper;

import com.yuyou.tas.service.api.lesson.dto.DtoBaseTeach;
import com.yuyou.tas.service.api.lesson.entity.BaseTeach;
import com.yuyou.tas.util.bean.Pagination;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BaseTeachMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BaseTeach record);

    BaseTeach selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseTeach record);

    int findTeachCount(Pagination<DtoBaseTeach> queryPgn);

    List<DtoBaseTeach> findTeachPageList(Pagination<DtoBaseTeach> queryPgn);

    BaseTeach selectByPKandOrgan(@Param(value="id") Long id, @Param(value="authOrganizationId") Long authOrganizationId);

    BaseTeach selectByCode7Organ(@Param(value="code")String code,@Param(value="authOrganizationId")Long authOrganizationId);
    
    List<BaseTeach> findTeachs(Map<String , Object> condition);

    Long findMaxCode(Map<String , Object> condition);
}